#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>

static void *new_thread_start(void *arg)
{
    printf("new thread id<%d> thread id <%lu>\r\n",getpid(),pthread_self());
    return (void *)0;
}

int main(void)
{
    pthread_t  tid;
    int  ret;
    ret  = pthread_create(&tid,NULL,new_thread_start,NULL);
    if(ret){
        fprintf(stderr,"Error:%s\n",strerror(ret));
        exit(-1);
    }

    printf("main  process id<%d> thread id = <%lu>\r\n",getpid(),pthread_self());
    sleep(1);
    exit(0);
}